<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>授权登录</title>
</head>
<body>
<div>
    <span>授权登录</span>
    <input type="button" value="第三方登录" onclick="login()"/>
</div>
<script>
    function login() {
        //redirect_uri 可以写后端某个地址，后端拿到 code 后去换取token, 然后再重定向到前端首页。
        window.location = 'http://127.0.0.1:9900/api-uaa/oauth/authorize?client_id=app&response_type=code&redirect_uri=http://127.0.0.1:8080/callback.html';
    }
</script>
</body>
</html>